package it.univpm.diiga.memorysim.kernel.shared;

import java.io.File;
import java.io.FilenameFilter;

public class FileExtFilter implements FilenameFilter{
	private String estensione;

    public FileExtFilter (String estensione)
    {
        this.estensione = "." + estensione;
    }

    public boolean accept (File dir, String name)
    {
        return name.endsWith (estensione);
    }
}
